/**
 * UML.java creates an actual UML object which can
 * be used to later construct a graph of UML object
 * to create a UML diagram.
 * @author david.s.burroughs
 *
 */

package umlteam.src.main.java.edu.umuc.duchon.umlteam.main.gui;
public class UML {

	private String packageName;
	private String[] variableNames, methodNames, className;
	
	public UML() {
	
	}
	
	public UML(String packageName, String className[], String[] variableNames, String[] methodNames)
	{
		this.className = className;
		this.variableNames = variableNames;
		this.methodNames = methodNames;
		this.packageName = packageName;
	}
	
	public void createUML()
	{
		
		
	}
	
	public String toString()
	{

		String x = "";
		
		try{
			
		x = x.concat(packageName + "\n--\n\n");
		
		for(int i = 0; i < className.length; i++)
		{
			x = x.concat(className[i] + "\n--\n");		}

		for(int i = 0; i < variableNames.length; i++)
		{
			x = x.concat(variableNames[i]) + "\n";	
		}
		
		x = x.concat("--") + "\n";
		
		for(int i = 0; i < methodNames.length; i++)
		{
			x = x.concat(methodNames[i]) + "\n";	
		}
		}

		catch(Exception e){
		//	System.out.println("BAD INPUT");
		}
		return x;
		
		
	}
}
